//
//  UIWindow+Extension.swift
//  SameCity
//
//  Created by 秦江涛 on 2023/5/30.
//

import UIKit

extension UIWindow {
    func switchRootCtrl() {
        
//        let ctl = FilterCriteriaVideoInfoViewController()
//        let nav = MainNavigationController(rootViewController: ctl)
//        self.rootViewController = nav
//        return
        
        let islogin = Defaults[\.isLogin]
//        let islogin = true
        if islogin == false {
            let ctl = QILoginViewController()
//            let ctl = BeautyRecommViewController()
            let nav = MainNavigationController(rootViewController: ctl)
            self.rootViewController = nav
        } else {
            let ctl = MainTabBarController()
            self.rootViewController = ctl
        }
    }
}
